function say(name,word){
    console.log(name+': '+word);
}

say('张三','我爱你');
say('张三','i love you');
say('张三','ILU');

/* way 1
function newSay(){
    say.apply(null,['张三'].concat(Array.prototype.slice.call(arguments)));
}*/

/* way 2*/
var newSay=say.bind(this,'李四');

newSay('我爱你'); 
newSay('i love you');
newSay('ILU');

function eat(times,callback){
    console.log(times);

    return function(){};
}
var newEat=eat(5,function(){
    console.log('吃完了');
});

newEat();
newEat();
newEat();
newEat();
newEat();